package com.hx.er.service.manager;

import java.util.List;
import java.util.Map;

import com.hx.er.bean.base.AnnouncementBean;
import com.hx.er.bean.base.RestraurantBean;
import com.hx.er.bean.base.UserBean;
import com.hx.er.bean.detail.CityDetailBean;
import com.hx.er.bean.detail.DistrictDetailBean;
import com.hx.er.bean.detail.StreetDetailBean;

public interface IManagerRestService {

	/**
	 * 修改餐馆信息
	 * 
	 * @param restBean
	 * @return
	 */
	public int updateRest(RestraurantBean restBeann);

	/**
	 * 通过编号查询餐厅信息
	 * 
	 * @param restBean
	 * @return
	 */
	public RestraurantBean getRestById(long restId);

	/**
	 * 查询用户信息
	 * 
	 * @param userBean
	 * @return
	 */
	public UserBean getUserAliveById(long userId);

	/**
	 * 查询餐厅经理
	 * 
	 * @return
	 */
	public UserBean getManagerByRestId(long restId);

	/**
	 * 通过对象查询公告
	 * 
	 * @param announcementBean
	 * @return
	 */
	public AnnouncementBean getAnnAlive(AnnouncementBean annBean);
	
	/**
	 * 更新公告（此处用先删除后插入的方式）
	 * 
	 * @param announcementBean
	 * @return
	 */
	public int updateAnn(AnnouncementBean announcementBean);

	/**
	 * 查询街道列表
	 * 
	 * @param conditions
	 * @return
	 */
	public List<StreetDetailBean> getStreetDetailList(Map<String, Object> conditions);

	/**
	 * 查询区列表
	 * 
	 * @param conditions
	 * @return
	 */
	public List<DistrictDetailBean> getDistrictDetailList(Map<String, Object> conditions);

	/**
	 * 查询城市列表
	 * 
	 * @param conditions
	 * @return
	 */
	public List<CityDetailBean> getCityDetailList(Map<String, Object> conditions);

	/**
	 * 更新地址
	 * 
	 * @param restBean
	 * @return
	 */
	public int updateRestAddr(RestraurantBean restBean);
}
